package com.zachary.es.dtd;

import com.alibaba.fastjson.JSON;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zachary
 * Date: 14-7-13
 * Time: 下午9:26
 * PC：windhows'IDEA in home
 * To change this template use File | Settings | File and Code Templates.
 */
public class Medicine {
    private Integer id;
    private String name;
    private Date time;
    private Double price;
    private List<Integer> flags;

    public Medicine() {

    }

    public Medicine(Integer id, String name, Date time, Double price, List<Integer> flags) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.price = price;
        this.flags = flags;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public List<Integer> getFlags() {
        return flags;
    }

    public void setFlags(List<Integer> flags) {
        this.flags = flags;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}



